package v1

import (
	"github.com/gin-gonic/gin"
)

var AccountId string

// GetAuthCodes 获取授权码函数
func GetAuthCodes(c *gin.Context) {
	AccountId = c.Query("accountId")
	loginUrl := GetAuthCode(c.Writer, c.Request)
	c.Redirect(302, loginUrl)
}
